.class Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;
.super Ljava/lang/Object;
.source "CommunityAppBaseFragment.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

.field final synthetic val$models:Ljava/util/ArrayList;

.field final synthetic val$refreshHotData:Z

.field final synthetic val$refreshNewData:Z


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;ZZLjava/util/ArrayList;)V
    .registers 5
    .param p1, "this$1"    # Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    .prologue
    .line 327
    iput-object p1, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iput-boolean p2, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->val$refreshHotData:Z

    iput-boolean p3, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->val$refreshNewData:Z

    iput-object p4, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->val$models:Ljava/util/ArrayList;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 5

    .prologue
    const/4 v3, 0x0

    .line 331
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v1, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mMutex:[I

    monitor-enter v1

    .line 332
    :try_start_8
    iget-boolean v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->val$refreshHotData:Z

    if-nez v0, :cond_10

    iget-boolean v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->val$refreshNewData:Z

    if-eqz v0, :cond_28

    .line 333
    :cond_10
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mAppModels:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 334
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mAppModels:Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v2, v2, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v2, v2, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mExtraModels:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 337
    :cond_28
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mAppModels:Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->val$models:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 338
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mAdapter:Landroid/widget/BaseAdapter;

    invoke-virtual {v0}, Landroid/widget/BaseAdapter;->notifyDataSetChanged()V

    .line 339
    monitor-exit v1
    :try_end_3d
    .catchall {:try_start_8 .. :try_end_3d} :catchall_b7

    .line 341
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->val$models:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_60

    .line 342
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v1, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->val$models:Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->val$models:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/community/model/CommunityAppModel;

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/model/CommunityAppModel;->getPos()I

    move-result v0

    # setter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mLastAppPos:I
    invoke-static {v1, v0}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$102(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;I)I

    .line 345
    :cond_60
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # setter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mDelayLoad:Z
    invoke-static {v0, v3}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$902(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;Z)Z

    .line 346
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mPullToRefreshView:Lcom/handmark/pulltorefresh/library/PullToRefreshAdapterViewBase;

    invoke-virtual {v0}, Lcom/handmark/pulltorefresh/library/PullToRefreshAdapterViewBase;->onRefreshComplete()V

    .line 348
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mType:I

    sget-object v1, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->Type_User:Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;

    invoke-virtual {v1}, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->ordinal()I

    move-result v1

    if-eq v0, v1, :cond_8c

    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mType:I

    sget-object v1, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->Type_Fav:Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;

    invoke-virtual {v1}, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->ordinal()I

    move-result v1

    if-ne v0, v1, :cond_bd

    .line 349
    :cond_8c
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v1, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mPullToRefreshView:Lcom/handmark/pulltorefresh/library/PullToRefreshAdapterViewBase;

    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mHasMoreData:Z
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$400(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)Z

    move-result v0

    if-eqz v0, :cond_ba

    sget-object v0, Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;->PULL_FROM_END:Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;

    :goto_9e
    invoke-virtual {v1, v0}, Lcom/handmark/pulltorefresh/library/PullToRefreshAdapterViewBase;->setMode(Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;)V

    .line 354
    :goto_a1
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # invokes: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->cacheAppModels()V
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$1000(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)V

    .line 356
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->hideDialog()V

    .line 357
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # setter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mIsRequesting:Z
    invoke-static {v0, v3}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$202(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;Z)Z

    .line 358
    return-void

    .line 339
    :catchall_b7
    move-exception v0

    :try_start_b8
    monitor-exit v1
    :try_end_b9
    .catchall {:try_start_b8 .. :try_end_b9} :catchall_b7

    throw v0

    .line 349
    :cond_ba
    sget-object v0, Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;->DISABLED:Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;

    goto :goto_9e

    .line 351
    :cond_bd
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v1, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mPullToRefreshView:Lcom/handmark/pulltorefresh/library/PullToRefreshAdapterViewBase;

    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;->this$1:Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mHasMoreData:Z
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$400(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)Z

    move-result v0

    if-eqz v0, :cond_d3

    sget-object v0, Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;->BOTH:Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;

    :goto_cf
    invoke-virtual {v1, v0}, Lcom/handmark/pulltorefresh/library/PullToRefreshAdapterViewBase;->setMode(Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;)V

    goto :goto_a1

    :cond_d3
    sget-object v0, Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;->PULL_FROM_START:Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;

    goto :goto_cf
.end method
